package com.example.dell.startproject_122zzy.service;

import com.example.dell.startproject_122zzy.bean.WeatherResult;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;


/**
 * Created by dell on 2017/3/15.
 */
//Retrofit访问网络的借口
public interface WeatherService {
    //将接口的URL补充完整
    @GET("data/sk/{cityNumber}.html")
    //向API传参数
    Call<WeatherResult> getResult(@Path("cityNumber") String cityNumber);

}
